<?php
/**
 * @fileName:TestSimpleFactory.php
 * @project:basic_knowledge
 * @author : 吐火青蛙
 * @user : 吐火青蛙
 * @date : 2020/4/10
 *
 */

namespace miaosang\basicknowledge\design\simplefactory\tests;

use miaosang\basicknowledge\design\simplefactory\Bicycle;
use miaosang\basicknowledge\design\simplefactory\SimpleFactory;
use PHPUnit\Framework\TestCase;
class TestSimpleFactory extends TestCase
{
    public function testCanCreateBicycle()
    {
            $bicycle = (new SimpleFactory())->createBiycle();
            $this->assertInstanceOf(Bicycle::class,$bicycle);
    }
}
